<?php
/* Developer Notes
	Last Update: 8/27/2010
*/

# Set the error reporting level
error_reporting ( E_ALL );
ini_set ( 'display_errors', TRUE );

# It is safe to include files from here
define ( 'DF__SAFE', 1 );

class Df__Timer
{
	private $_start_timer, $_end_time = 0;
	
	/*------------------------------------------------
	 Set start time.
	--------------------------------------------------*/
	function start ( )
	{
		$this->_start_time = ( float ) array_sum ( explode ( ' ', microtime ( ) ) );
	}
	
	/*------------------------------------------------
	 Set end time.
	--------------------------------------------------*/
	function end ( )
	{
		$this->_end_time = ( float ) array_sum ( explode( ' ', microtime ( ) ) );
	}
	
	/*------------------------------------------------
	 Calculate the time it took to render major 
	 code. Also, output developer information.
	 $DF the core global DF object
	--------------------------------------------------*/
	function output ( $DF )
	{
		$_time = sprintf ( "%.4f", ( $this->_end_time - $this->_start_time ) );
		echo "<br><br><hr>{$_time} seconds.";
	}
}

$Df__Timer = new Df__Timer;
$Df__Timer->start ( );

# Get this mother started!
require_once '_devfly/etc/initialize.php';

$Df__Timer->end ( );
$Df__Timer->output ( $DF );

#>>>>DEBUGGING
if ( _DEBUG_ )
{
	echo $DF [ 'common' ]->pre (
		'session: ' . print_r ( $_SESSION, TRUE ) . 
		'request: ' . print_r ( $_REQUEST, TRUE ) . 
		'post: ' . print_r ( $_POST, TRUE ) . 
		'get: ' . print_r ( $_GET, TRUE )
	);
}
?>